package com.ugrow.ugrowcommunity.util;

import java.util.Arrays;
import java.util.List;

public class ArrayExistUtil {


    //判断一个数据是否在某个集合中
    public static boolean stringExistList(String[] arr, String targetValue) {
        return Arrays.asList(arr).contains(targetValue);
    }

    public static int indexOf(String[] arr, String targetValue) {
        return Arrays.asList(arr).indexOf(targetValue);
    }


}
